package com.gxa.common;

import lombok.Data;

@Data
public class R<T> {
    private Integer code;
    private String msg;
    private int count;
    private T data;

    public static R ok(){
        return new R(200,"success");
    }

    public R() {
    }

    public R(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
